﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmithWatermanTest
{
    class Person : IComparable
    {

        public int Age { get; set; }

        #region IComparable Members

        public int CompareTo(object obj)
        {
            
            //return this.Age.CompareTo(((Person)obj).Age);
            return ((Person)obj).Age.CompareTo(this.Age);
        }

        #endregion
    }
}
